package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 小程序代理用户对象 mini_proxy
 *
 * @author ruoyi
 * @date 2023-10-31
 */
public class MiniProxy extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 用户账号 */
    @Excel(name = "用户账号")
    private String username;

    /** 分享标志 */
    @Excel(name = "分享标志")
    private String shareKey;

    /** 分佣(分为单位) */
    @Excel(name = "分佣(分为单位)")
    private Integer reward;
    /**
     * 删除标志（0代表存在 2代表删除）
     */
    private String delFlag;
    /**
     * 用户id
     */
    private Long userId;

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setUsername(String username)
    {
        this.username = username;
    }

    public String getUsername()
    {
        return username;
    }
    public void setShareKey(String shareKey)
    {
        this.shareKey = shareKey;
    }

    public String getShareKey()
    {
        return shareKey;
    }
    public void setReward(Integer reward)
    {
        this.reward = reward;
    }

    public Integer getReward()
    {
        return reward;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("username", getUsername())
            .append("shareKey", getShareKey())
            .append("reward", getReward())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
